<?php

if ( ! defined("IN_OP") )
{
    exit("You can't access this file directly...");
}
$news = "";
$msgArr = array ( );
$msgBtn = "";
$news_add = trim($conf->Get("news_th"));
if ( $news_add )
{
    $msgArr[] = "<div id='showMynews'><b>系统重大公告:&nbsp;</b><strong style=color:red>{$news_add}</strong></div>";
}
$msgBtn .= "<input type='button' value='重' class='colorBtnGray' onclick='javascript:showMyNews(event, -1);' />";
if ( $g_init_mode_6h )
{
    $news_add = trim($conf->Get("news_en"));
    if ( $news_add )
    {
        $msgArr[] = "<div id='showMynews01'><b>【六合彩】</b>管理层公告:&nbsp;{$news_add}</div>";
    }
    $news_add = trim($conf->Get("news"));
    if ( $news_add )
    {
        $msgArr[] = "<div id='showMynews02'><b>【六合彩】</b>会员公告:&nbsp;{$news_add}</div>";
    }
}
if ( $g_init_mode_3d )
{
    $i = 1;
    while ( $i < 24 )
    {
        if ( isset($g_menu_enabled[$i]) && $g_menu_enabled[$i] )
        {
            $enTemp = $g_gametype_3d[$i]['en'];
            $chTemp = $g_gametype_3d[$i]['ch'];
            $news_add = trim($conf->Get("news_th_{$enTemp}"));
            if ( $news_add )
            {
                $msgArr[] = "<div id='showMynews{$i}1'><b>【{$chTemp}】</b>管理层公告:&nbsp;{$news_add}</div>";
            }
            $news_add = trim($conf->Get("news_{$enTemp}"));
            if ( $news_add )
            {
                $msgArr[] = "<div id='showMynews{$i}2'><b>【{$chTemp}】</b>会员公告:&nbsp;{$news_add}</div>";
            }
        }
        ++ $i;
    }
}
$url_a = function_exists("showNewsBar")?showNewsBar():"&nbsp;";
$color = $conf->Get("newsClc");
$color = $color?$color:"red";
$msgStr = implode("," , $msgArr);
if ( count($msgArr) )
{
    $news = $msgArr[0];
}
else
{
    $news = "";
}
echo "\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<META HTTP-EQUIV=\"refresh\" CONTENT=\"1800\"> \r\n<title>NEWS</title>\r\n<link REL=\"StyleSheet\" type=\"text/css\" href=\"core/tpl/k2/site.css\">\r\n<link REL=\"StyleSheet\" type=\"text/css\" href=\"loginTpl/color_";
echo G_CSS_ID;
echo "/clc.css\">\r\n<link REL=\"StyleSheet\" type=\"text/css\" href=\"loginTpl/bar_";
echo G_BAR_Type;
echo "/bar.css\">\r\n\r\n";
echo "<s";
echo "cript type=\"text/javascript\">\r\nfunction chgNewsPage(){\r\n  window.top.mainFrame.location.replace(\"?op=agent&fp=memnew\");\r\n}\r\n\r\nfunction showMyNews(event, gtype){\r\n  var myNews = \"\";\r\n  if(gtype < 0){\r\n    window.top.mainFrame.location.replace(\"?op=agent&fp=memnew#top\");\r\n  }else{\r\n    window.top.mainFrame.location.replace(\"?op=agent&fp=memnew#\" + gtype); \r\n  }\r\n  return true;\r\n}\r\n</script>\r\n";
echo "<s";
echo "tyle type=\"text/css\"><!-- \r\n.mynews01 {\r\n\tTEXT-ALIGN: center; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 80px; PADDING-RIGHT: 0px; FONT: 12px \"Arial\"; \r\n  BACKGROUND: url(./image/mqe01.gif) no-repeat; HEIGHT: 25px; COLOR: #fff; PADDING-TOP: 3px;\r\n  border: 1px;\r\n}\r\n\r\n.mynews02 {\r\n\tTEXT-ALIGN: center;\r\n  FONT: 14px; \r\n  BACKGROUND: url(./image/newbg.png) repeat-x;\r\n}\r\n\r\n.mynews03, .mynews03 a {\r";
echo "\n\tBACKGROUND: #1e5f7d;\r\n\tcolor:#FFFFFF;\r\n\ttext-decoration:none; \r\n}\r\n\r\n.mynews03 a:hover {\r\n\tcolor:#FFFF66;\r\n\ttext-decoration:underline; \r\n}\r\n\r\n\r\n --></style>\r\n\r\n</head>\r\n<body style=\"margin:0;\">   \r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"24\" style=\"font-size:12px;cursor: pointer;\">\r\n<tr>\r\n<td nowrap class=\"mynews01\"  onclick=\"javascript:chgNewsPage();\">即时讯息</td>\r\n<td w";
echo "idth=\"99%\" valign=\"middle\" id=\"newsmarquee\" class=\"mynews02\"  onclick=\"javascript:chgNewsPage();\" nowrap >\r\n<marquee BEHAVIOR=\"SCROLL\" scrolldelay=\"200\" id=\"newsClc\" align=\"middle\" style=\"cursor: pointer; \" onclick=\"javascript:chgNewsPage();\">\r\n";
echo $news;
echo "</marquee>\r\n\r\n</td>\r\n<td nowrap >";
echo $msgBtn;
echo "</td>\r\n\r\n<td nowrap class=\"mynews03\">";
echo $url_a;
echo "</td>\r\n</tr>\r\n</table>\r\n";
echo "<s";
echo "cript>        \r\nfunction reMyTag(oObj){\r\n var str = oObj.innerHTML;\r\n str = str.replace(/\\133/g, \"";
echo "<s";
echo "trong style='color:";
echo $color;
echo ";'>\");\r\n str = str.replace(/\\135/g, \"</strong>\");\r\n oObj.innerHTML = str;\r\n}\r\nreMyTag(document.getElementById(\"newsClc\"));\r\n\r\n</script>\r\n</body>\r\n</html>";